import 'package:flutter/material.dart';
import 'package:vdrag_saas/list/pages/app_bar/tag.dart';

class MoreButton extends StatefulWidget {
  List<Tag> tags = [];
  MoreButton(this.tags, {super.key});

  @override
  State<StatefulWidget> createState() => _MoreButton();
}
class _MoreButton extends State<MoreButton> {
  @override
  Widget build(BuildContext context) {
    List<Tag> tags = widget.tags;
    return SizedBox(
      child: DropdownButton(
        items: tags.map((Tag tag){
          return DropdownMenuItem(child: Text(tag.name));
        }).toList(),
      
      onChanged: null
      ),
    );
  }
}